package tk.xboot.boot.event;

import org.springframework.context.ApplicationEvent;

public class CustomEvent extends ApplicationEvent {

    private EventBean eventBean;

    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    public CustomEvent(Object source,EventBean eventBean) {
        super(source);
        this.eventBean = eventBean;
    }

    public EventBean getEventBean(){
        return this.eventBean;
    }

}
